﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MYSMRM.Manager.Interface;
using MYSMRM.Manager.Base;
using MYSMRM.Model;
using MYSMRM.Dao.Implement;
using MYSMRM.Dao.Interface;

namespace MYSMRM.Manager.Implement
{

   public class QSQuestionManager : ManagerBase<QSQuestion>, IQSQuestionManager
   {
       public QSQuestionManager()
       {
           this.CurrentDao = new QSQuestionDao();
       }

       public IList<QSQuestion> LoadAllByPage(out long total, int id, int page, int rows, string order, string sort)
       {
           return ((IQSQuestionDao)(this.CurrentDao))
               .LoadAllByPage(out total, id, page, rows, order, sort).ToList();
       }

       public IList<QSQuestion> LoadAllEnable(int id)
       {
           return ((IQSQuestionDao)(this.CurrentDao)).LoadAllEnable(id).ToList();
       }


   }
}
